<%-- 
    Document   : dialog_move_to_employee
    Created on : 25.03.2014, 11:18:19
    Author     : Corvus 11
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>

<div id="dialog_move_to_employee_main" class="dialog-content">
    <div>
       <input type="hidden" id="move_employee_id">
       <input type="hidden" id="move_office_id" value="-1">
    </div>
    <table class="table no-border" style="margin-bottom: 0px">
        <col width="125">
        <col>
        <tr>
            <td>Дата смены: </td>
            <td>
                <div class="input-control text" data-role="datepicker" data-locale='ru'>
                    <input type="text" id="move_employee_date">
                    <button type="button" class="btn-date"></button>
                </div>
            </td>
        </tr>
        <core:if test="${getNew == true}">
            <tr>
                <td>Офис: </td>
                <td class="input-control select" data-role="input-control">
                    <select id="dialog_mte_select_office" onchange="mteOfficeChanged();">
                        <option value="-1">Выберите офис</option>
                        <core:forEach items="${officeNameList}" var="office">
                            <option value="${office.id}">${office.name}</option>
                        </core:forEach>
                    </select>
                </td>
            </tr>
            <tr>
                <td>Сотрудник: </td>
                <td class="input-control select" data-role="input-control">
                    <select id="dialog_mte_select_employee" onchange="mteEmployeeChanged();">
                        <option value="-1">Выберите сотрудника</option>
                    </select>
                </td>
            </tr>
        </core:if>
    </table>
    <button type="button" class="button place-right place-bottom" onclick="submitMoveToEmployee();">
        ОК
    </button>
</div>

